package com.fanqiechaodan.bridge;

/**
 * @author fanqiechaodan
 * @Classname OnlinePayment
 * @Description 扩展化抽象角色;支付扩展
 */
public class OnlinePayment extends Payment{

    public OnlinePayment(PaymentImplementor implementor) {
        super(implementor);
    }

    /**
     * 支付
     *
     * @param amount
     */
    @Override
    public void pay(double amount) {
        System.out.println("开始在线支付...");
        implementor.processPayment(amount);
        System.out.println("在线支付完成...");
    }
}
